import Vue from 'vue'

// 大型组件引入
const DemoUI = import.meta.globEager('../UI-Demo/**/index.vue');
for (const key in DemoUI) {
    const element = DemoUI[key];
    const _key = key.replace(/\/index\.vue/g, '').replace(/\.\.\/UI\-Demo\//g, 'D').replace(/\//g, '-')
    Vue.component(_key, element.default);
}

// 小型组件引入
const DemoSmallUI = import.meta.globEager('../UI-Demo/*.vue');
for (const key in DemoSmallUI) {
    const element = DemoSmallUI[key];
    const _key = key.replace(/\.vue/g, '').replace(/\.\.\/UI\-Demo\//g, 'D');
    Vue.component(_key, element.default);
}

